package com.har.modules.web.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.har.common.utils.PageUtils;
import com.har.common.utils.Query;
import com.har.modules.web.dao.InsuredDao;
import com.har.modules.web.entity.InsuredEntity;
import com.har.modules.web.service.InsuredService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("insuredService")
public class InsuredServiceImpl extends ServiceImpl<InsuredDao, InsuredEntity> implements InsuredService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<InsuredEntity> page = this.selectPage(
                new Query<InsuredEntity>(params).getPage(),
                new EntityWrapper<InsuredEntity>()
        );

        return new PageUtils(page);
    }

}
